package com.zh.rent.service.impl;

import com.zh.rent.dao.SetupDao;
import com.zh.rent.pojo.Setup;
import com.zh.rent.service.SetupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(isolation = Isolation.READ_COMMITTED)
public class SetupServiceImpl implements SetupService {
    @Autowired
    SetupDao setupDao;
    @Override
    public Setup setsetupAll() {
        return setupDao.setsetupAll();
    }

    @Override
    public int upsetup(Setup setup) {
        return setupDao.upsetup(setup);
    }
}
